<html lang="zh-cn" style="font-size: 55.2px;">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0">
    <meta name="full-screen" content="yes">
    <meta name="browsermode" content="application">
    <link rel="icon" href="favicon.ico">
    <title>Welcome Indeed Mall</title>
    <link rel="stylesheet" href="/statics/css/base.css">
    <link href="/statics/css/chunk-vendors.c3991080.css" rel="stylesheet">
    <link href="/statics/css/app.bad77f0c.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="/statics/css/chunk-27abeb41.2fd9f59d.css">
    <link rel="stylesheet" href="/static/index/css/common.css">
    <script src="/static/jquery-3.5.0.min.js"></script>
    <script src="/static/layer/layer.js"></script>
</head>

<body>
    <style>
        #loadingContainer {
            position: fixed;
            width: 100%;
            height: 100%;
            z-index: 999999;
            background: #ffffff;
            display: none;
        }
    </style>
    <div id="loadingContainer" style="display: none;">
        <div style="display: flex;align-items: center;justify-content: center;height: 100%;"><span>Loading..</span>
        </div>
    </div>
    <div id="app">
        <div data-v-0d80527b="" id="addBank">
            <div data-v-653af513="" data-v-0d80527b="" class="com-nav"><i data-v-653af513=""
                    class="leftIcon van-icon van-icon-arrow-left" style="font-size: 22px;" onclick="history.go(-1)">
                    <!---->
                </i>
                <div data-v-653af513="" class="title">绑定银行卡</div>
            </div>
            <div data-v-0d80527b="" class="add-bank-container">
                <!---->
                <section data-v-00467402="" data-v-0d80527b="">
                    <div data-v-00467402="" class="cell-card">
                        <div data-v-00467402="" class="van-cell-group">
                            <div data-v-00467402="" class="van-cell van-field">
                                <div class="van-cell__title van-field__label" style="width: 2.1rem;"><span>银行名称</span></div>
                                <div class="van-cell__value van-field__value">
                                    <div class="van-field__body">
                                        {notempty name="user_info.bank_name"}
                                        <input type="text"
                                            class="van-field__control" name="bank_name" readOnly="true" maxlength="100" step="" enterkeyhint="done" autocomplete="off" value="{$user_info.bank_name}">
                                        {else /}
                                        <input type="text"
                                            class="van-field__control" name="bank_name" maxlength="100" step="" enterkeyhint="done" autocomplete="off"  placeholder="输入银行名称">
                                        {/notempty}
                                    </div>
                                </div>
                            </div>
                            <div data-v-00467402="" class="van-cell van-field">
                                <div class="van-cell__title van-field__label" style="width: 2.1rem;"><span>持有人名称</span></div>
                                <div class="van-cell__value van-field__value">
                                    <div class="van-field__body">
                                        {notempty name="user_info.holder_name"}
                                        <input type="text"
                                            class="van-field__control" name="holder_name" readOnly="true" maxlength="100" step="" enterkeyhint="done" autocomplete="off" class="uni-input-input" value="{$user_info.holder_name}">
                                        {else /}
                                        <input type="text"
                                            class="van-field__control" name="holder_name" maxlength="100" step="" enterkeyhint="done" autocomplete="off"  class="uni-input-input" placeholder="输入银行持有人姓名">
                                        {/notempty}
                                    </div>
                                </div>
                            </div>
                            <div data-v-00467402="" class="van-cell van-field">
                                <div class="van-cell__title van-field__label" style="width: 2.1rem;"><span>帐号</span></div>
                                <div class="van-cell__value van-field__value">
                                    <div class="van-field__body">
                                        {notempty name="user_info.account_number"}
                                        <input type="text"
                                            class="van-field__control" name="account_number" readOnly="true" maxlength="100" step="" enterkeyhint="done" autocomplete="off" class="uni-input-input" value="{$user_info.account_number}">
                                        {else /}
                                        <input type="text"
                                            class="van-field__control" name="account_number" maxlength="100" step="" enterkeyhint="done" autocomplete="off" class="uni-input-input" placeholder="输入帐号">
                                        {/notempty}
                                    </div>
                                </div>
                            </div>
                            <div data-v-00467402="" class="van-cell van-field">
                                <div class="van-cell__title van-field__label" style="width: 2.1rem;"><span>电话号码</span></div>
                                <div class="van-cell__value van-field__value">
                                    <div class="van-field__body">
                                        {notempty name="user_info.phone_number"}
                                        <input type="text"
                                            class="van-field__control" name="phone_number" readOnly="true" maxlength="100" step="" enterkeyhint="done" autocomplete="off" class="uni-input-input" value="{$user_info.phone_number}">
                                        {else /}
                                        <input type="text"
                                            class="van-field__control" name="phone_number" maxlength="100" step="" enterkeyhint="done" autocomplete="off" class="uni-input-input" placeholder="输入电话号码">
                                        {/notempty}
                                    </div>
                                </div>
                            </div>
                            <div data-v-00467402="" class="van-cell van-field">
                                <div class="van-cell__title van-field__label" style="width: 2.1rem;"><span>电子邮件</span></div>
                                <div class="van-cell__value van-field__value">
                                    <div class="van-field__body">
                                        {notempty name="user_info.email"}
                                        <input type="text"
                                            class="van-field__control" name="email" readOnly="true" maxlength="100" step="" enterkeyhint="done" autocomplete="off" class="uni-input-input" value="{$user_info.email}">
                                        {else /}
                                        <input type="text"
                                            class="van-field__control" name="email" maxlength="100" step="" enterkeyhint="done" autocomplete="off" class="uni-input-input" placeholder="输入电子邮件">
                                        {/notempty}
                                    </div>
                                </div>
                            </div>
                            <div data-v-00467402="" class="van-cell van-field">
                                <div class="van-cell__title van-field__label" style="width: 2.1rem;"><span>CCL</span></div>
                                <div class="van-cell__value van-field__value">
                                    <div class="van-field__body">
                                        {notempty name="user_info.ifsc"}
                                        <input type="text"
                                            class="van-field__control" name="ifsc" readOnly="true" maxlength="100" step="" enterkeyhint="done" autocomplete="off" class="uni-input-input" value="{$user_info.ifsc}">
                                        {else /}
                                        <input type="text"
                                            class="van-field__control" name="ifsc" maxlength="100" step="" enterkeyhint="done" autocomplete="off" type="" class="uni-input-input" placeholder="请输入 IFSC">
                                        {/notempty}
                                    </div>
                                </div>
                            </div>
                          <!--  <div data-v-00467402="" class="van-cell van-field">
                                <div class="van-cell__title van-field__label" style="width: 2.1rem;"><span>UPI</span></div>
                                <div class="van-cell__value van-field__value">
                                    <div class="van-field__body">
                                        {notempty name="user_info.upi"}
                                        <input type="text"
                                            class="van-field__control" name="upi" readOnly="true" maxlength="100" step="" enterkeyhint="done" autocomplete="off" class="uni-input-input" value="{$user_info.upi}">
                                        {else /}
                                        <input type="text"
                                            class="van-field__control" name="upi" maxlength="100" step="" enterkeyhint="done" autocomplete="off" class="uni-input-input" placeholder="请输入 UPI">
                                        {/notempty}
                                    </div>
                                </div>
                            </div>
                        </div>-->
                    </div>
                    {empty name="user_info.bank_name"}
                    <div data-v-00467402="" class="btn save add" style="margin-bottom: 15px; margin-top: 30px;">保存</div>
                    {/empty}
                </section>
            </div>
        </div>
        <section style="display:none">
            <div class="float-right-bottom">
                <div style="position: relative;">
                    <div class="close"><i class="van-icon van-icon-close" style="font-size: 20px;">
                            <!---->
                        </i></div>
                    <div><svg t="1636034620833" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
                            p-id="5235" width="48" height="48" class="icon">
                            <path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#2B2B2B"
                                p-id="5236"></path>
                            <path
                                d="M332.8 499.2c0-98.9696 80.2304-179.2 179.2-179.2s179.2 80.2304 179.2 179.2h51.2c0-127.2448-103.1552-230.4-230.4-230.4s-230.4 103.1552-230.4 230.4h51.2z m0 0c0-98.9696 80.2304-179.2 179.2-179.2s179.2 80.2304 179.2 179.2h51.2c0-127.2448-103.1552-230.4-230.4-230.4s-230.4 103.1552-230.4 230.4h51.2z"
                                fill="#E0B58C" p-id="5237"></path>
                            <path
                                d="M332.8 524.8v102.4h51.2v-102.4h-51.2z m-51.2-25.6768c0-14.0928 11.5456-25.5232 25.7152-25.5232h102.1696c14.208 0 25.7152 11.456 25.7152 25.5232v153.7536A25.6384 25.6384 0 0 1 409.4848 678.4H307.328A25.6256 25.6256 0 0 1 281.6 652.8768V499.1232zM640 524.8v102.4h51.2v-102.4h-51.2z m-51.2-25.6768c0-14.0928 11.5456-25.5232 25.7152-25.5232h102.1696c14.208 0 25.7152 11.456 25.7152 25.5232v153.7536A25.6384 25.6384 0 0 1 716.6848 678.4H614.528A25.6256 25.6256 0 0 1 588.8 652.8768V499.1232z"
                                fill="#E0B58C" p-id="5238"></path>
                            <path
                                d="M588.8 576a25.6 25.6 0 1 1 51.2 0v102.4256C640 734.9376 594.0864 780.8 537.6 780.8a25.6 25.6 0 1 1 0-51.2c28.224 0 51.2-22.9504 51.2-51.1744V576z"
                                fill="#E0B58C" p-id="5239"></path>
                        </svg></div>
                </div>
            </div>
        </section>
    </div>
</body>
<script>
    function getUrlParam(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
        var r = window.location.search.substr(1).match(reg);  //匹配目标参数
        if (r != null) return unescape(r[2]); return null; //返回参数值
    }
    $(document).on("click", ".add", function () {
        var bank_name = $("input[ name='bank_name']").val();
        var holder_name = $("input[ name='holder_name']").val();
        var account_number = $("input[ name='account_number']").val();
        var phone_number = $("input[ name='phone_number']").val();
        var email = $("input[ name='email']").val();
        var ifsc = $("input[ name='ifsc']").val();
        var upi = $("input[ name='upi']").val();
        layer.load(2);
        $.ajax({
            url: "{:Url('card')}",
            type: "post",
            traditional: true,
            data: {bank_name: bank_name, holder_name: holder_name, account_number:account_number,phone_number: phone_number,email:email,ifsc:ifsc,upi:upi},
            success: function (e) {
                layer.closeAll('loading');
                if (e.code === 1) {
                    // if(getUrlParam('type') == 1){
                    //     layer.msg(e.msg, {
                    //     time: 2000,
                    //     end: function () {
                    //         // history.go(-1)
                    //         window.location.href = "/index/index/index.html"
                    //     }
                    // });
                    // }else{
                    //     layer.msg(e.msg, {
                    //     time: 2000,
                    //     end: function () {
                    //         // location.reload();
                    //       window.location.href = "/index/index/index.html"
                    //     }
                    // });
                    // }
                    layer.msg(e.msg, {
                        time: 2000,
                        end: function () {
                          window.location.href = "/index/index/index.html"
                        }
                    });
                } else {
                    layer.msg(e.msg, function () {
                        return false;
                    });
                }
            },
        });
    });
</script>
</html>